<template>
  <div id="title-bar" :style="{background:bg_color,color:font_color}">
    <div class="left">
      <slot name="left"></slot>
    </div>
    <div class="center">
      <slot name="center"></slot>
    </div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name:"TitleBar",
  props:{
    bg_color:{
      type:String,
      default:"#eb4450"
    },
    font_color:{
      type:String,
      default:"#fff"
    }
  }
}
</script>

<style scoped>
  #title-bar{
    height: 60px;
    line-height: 60px;
    display: flex;
    text-align: center;
    /* background: #eb4450; */
    /* color: #fff; */
  }
  .left,.right{
    width: 40px;
  }
  .center{
    flex: 1;
  }
</style>